/*
 * Copyright 2012-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ccxc.question.user.dto;

import java.sql.Timestamp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>用户实体类</p>
 */
@ApiModel("用户实体类")
@NoArgsConstructor
@ToString
public class User {
    @ApiModelProperty(dataType = "String", name = "id", value = "用户id")
    @Setter
    @Getter
    private String id;

    @ApiModelProperty(dataType = "String", name = "openId", value = "微信用户唯一标识id")
    private String openId;

    @ApiModelProperty(dataType = "String", name = "headPortrait", value = "微信头像地址")
    private String headPortrait;

    @ApiModelProperty(dataType = "String", name = "nickname", value = "微信用户昵称")
    private String nickname;

    @ApiModelProperty(dataType = "String", name = "country", value = "用户所在的国家")
    private String country;

    @ApiModelProperty(dataType = "String", name = "province", value = "用户所在的省份")
    private String province;

    @ApiModelProperty(dataType = "String", name = "city", value = "用户所在的城市")
    private String city;

    @ApiModelProperty(dataType = "Date", name = "creationTime", value = "用户注册时间")
    private Timestamp creationTime;

    @ApiModelProperty(dataType = "String", name = "token", value = "人脸识别用户唯一id")
    static @Getter
    @Setter
    private String token;

    public User(String id) {
        this.id = id;
    }
}
